﻿using BW.MesProject.Equipment.Domain.Equipment;
using BW.MesProject.Equipment.Infrastructure.Dto.Input.ProjectForm;
using BW.MesProject.Equipment.Infrastructure.Dto.Output.ProjectForm;
using BW.MesProject.Equipment.Infrastructure.Dto.Output.ProjectMaintenance;
using BW.MesProject.Public.ErrorCode;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.Equipment.Infrastructure.Equipment
{
    /// <summary>
    /// 项目表单服务接口层
    /// </summary>
    public interface IProjectFromService
    {
        /// <summary>
        /// 获取项目维护数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ApiResult<List<ProjectMaintenanceModel>> GetProjectMaintenanceValue();

        /// <summary>
        /// 新增项目表单
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        ApiResult<int> AddProjectForm(AddProjectFormInput input);

        /// <summary>
        /// 获取项目表单列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        ApiPaging<ProjectFromOutput> GetProjectFormList(ProjectFormQueryInput input);

        /// <summary>
        /// 根据id获取项目表单数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ApiResult<ProjectFromOutput> GetProjectFormValue(long id);

        /// <summary>
        /// 更新项目表单
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        ApiResult<int> UpdateProjectForm(UpdateProjectFormInput input);

        /// <summary>
        /// 删除项目表单
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        ApiResult<int> DeleteProjectForm(long id);
    }
}
